
// 商品选项接口
export const getSelect = ()=>{
	return uni.request({
		method:'GET',
		url:'http://192.168.33.10:3001/selectIce',
	})
}
export const getsugar = ()=>{
	return uni.request({
		method:'GET',
		url:'http://192.168.33.10:3001/sugar',
	})
}
export const getmaterial = ()=>{
	return uni.request({
		method:'GET',
		url:'http://192.168.33.10:3001/material',
	})
}




// 个人轮播图接口
export const getmyswiper = ()=>{
	return uni.request({
		method:'GET',
		url:'http://192.168.33.10:3001/my',
	})
}


// 查询详情
export const getDetaList = (id)=>{
	return uni.request({
		method:'GET',
		url:`http://192.168.33.10:3001/detalist/${id}`,
	})
}

// 购买单品
export const buyone = (goods)=>{
	return uni.request({
		method:'PUT',
		url:'http://192.168.33.10:3001/buyone',
		data:{
			goods:goods
		}
		
	})
}
